package org.bao.bean;

/**
 * @author ：feller
 * @date ：Created in 2022/05/12 18:11
 * @description：接受到的消息主体对象  消息列表，内部List为告警消息通知内容，可能为多个
 * @version: 1.0
 */
public class alertMessagesBean {

    private String alertRuleName;//告警规则名称
    private String message;//告警信息
    private String url;//跳转链接，跳转至XSky告警详情
    private String level;//SERIOUS_ALERT(严重告警)，ALERT(普通告警)，NONE(其他)
    private String alertGroupType;//告警对象类型，类型可能会在不断迭代中进行增加，请做好可能接收到未支持的Type类型的准备
    private Object alertObject;//告警对象数据，根据不同的Type类型，会产生不同的数据结构

    public alertMessagesBean(String alertRuleName, String message, String url, String level, String alertGroupType, Object alertObject) {
        this.alertRuleName = alertRuleName;
        this.message = message;
        this.url = url;
        this.level = level;
        this.alertGroupType = alertGroupType;
        this.alertObject = alertObject;
    }

    public String getAlertRuleName() {
        return alertRuleName;
    }

    public void setAlertRuleName(String alertRuleName) {
        this.alertRuleName = alertRuleName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getAlertGroupType() {
        return alertGroupType;
    }

    public void setAlertGroupType(String alertGroupType) {
        this.alertGroupType = alertGroupType;
    }

    public Object getAlertObject() {
        return alertObject;
    }

    public void setAlertObject(Object alertObject) {
        this.alertObject = alertObject;
    }

    @Override
    public String toString() {
        return "alertMessagesBean{" +
                "alertRuleName='" + alertRuleName + '\'' +
                ", message='" + message + '\'' +
                ", url='" + url + '\'' +
                ", level='" + level + '\'' +
                ", alertGroupType='" + alertGroupType + '\'' +
                ", alertObject=" + alertObject +
                '}';
    }
}
